import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const searchSpecialIncomeList = (param) => {
  return axios.get(API_NEW_VERSION + 'special_incomes', {params: param});
};

export const searchSpecialIncomeDetails = (params) => {
  return axios.get(API_NEW_VERSION + 'special_income_details', {params: params});
};

export const searchSumAll = (param) => {
  return axios.get(API_NEW_VERSION + 'special_income/sum_all', {params: param});
};

export const searchSumSingle = (param) => {
  return axios.get(API_NEW_VERSION + 'special_income/sum_single', {params: param});
};

export const createExtractRecord = (params) => {
  return axios.post(API_NEW_VERSION + 'special_income_extract_record', params);
};

export const searchExtractRecords = (params) => {
  return axios.get(API_NEW_VERSION + 'special_income_extract_records', {params: params});
};
